package com.gitee.huanminabc.fastboot.orm.methods.combine;

import com.gitee.huanminabc.fastboot.orm.methods.BaseMethod;
import com.gitee.huanminabc.jlambda_sql.jdbc.JdbcCommand;

import java.lang.reflect.Method;

/**
 * @description:
 * @author: huanmin
 * @create: 2025-04-11 12:23
 **/
public class InsertOrUpdateMethod  implements BaseMethod {
    @Override
    public String getSignature() {
        return "insertOrUpdate";
    }

    @Override
    public Object execute(Method method, Object[] args) {
        Object entity = args[0];
        return JdbcCommand.insertOrUpdate(entity);
    }
}
